package com.emm.yixun.jobs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.emm.yixun.common.app.base.CommonResDTO;
import com.emm.yixun.system.service.NoticeServiceFacade;

/***
 * 逾期未签约推送
 * 描述:
 * 	通知对象：①经纪人；②销管负责人；3 案场负责人；4 营销负责人
 * 通知内容：你的客户xx（客户名称）已经预期未签约，请尽快处理或申请延期签约。
 */
@Component
public class CustomerNoSignedPushMsgCurrJob {
	 private static Logger logger = LoggerFactory.getLogger(CustomerNoSignedPushMsgCurrJob.class);

	 @Autowired
	 private NoticeServiceFacade noticeServiceFacade;
	 
     @Scheduled(cron="0 0 10 * * ?")
     public void pushCustomerManageMsg(){
    	 logger.info("推送逾期未签约消息 job start..........");
    	 CommonResDTO resDto = noticeServiceFacade.customerNoSignedPushMsgCurr();
    	 if("1".equals(resDto.getResult())){
    		 logger.info("推送逾期未签约消息成功");
    		 
    	 }
    	 logger.info("推送逾期未签约消息 job end..........");
     }
     

}
